home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / fread.man < prev    next >
Encoding:
Text File  |  1989-01-25  |  1.5 KB  |  67 lines

  1.  
  2.  
  3.  
  4. FREAD                 C Library Procedures                  FREAD
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      fread, fwrite - buffered binary input/output
  10.  
  11. SSYYNNOOPPSSIISS
  12.      ##iinncclluuddee <<ssttddiioo..hh>>
  13.  
  14.      ffrreeaadd((ppttrr,, ssiizzeeooff((**ppttrr)),, nniitteemmss,, ssttrreeaamm))
  15.      FFIILLEE **ssttrreeaamm;;
  16.  
  17.      ffwwrriittee((ppttrr,, ssiizzeeooff((**ppttrr)),, nniitteemmss,, ssttrreeaamm))
  18.      FFIILLEE **ssttrreeaamm;;
  19.  
  20. DDEESSCCRRIIPPTTIIOONN
  21.      _F_r_e_a_d reads, into a block beginning at _p_t_r, _n_i_t_e_m_s of data
  22.      of the type of *_p_t_r from the named input _s_t_r_e_a_m.  It returns
  23.      the number of items actually read.
  24.  
  25.      If _s_t_r_e_a_m is ssttddiinn and the standard output is line buffered,
  26.      then any partial output line will be flushed before any call
  27.      to _r_e_a_d(2) to satisfy the _f_r_e_a_d.
  28.  
  29.      _F_w_r_i_t_e appends at most _n_i_t_e_m_s of data of the type of *_p_t_r
  30.      beginning at _p_t_r to the named output _s_t_r_e_a_m.  It returns the
  31.      number of items actually written.
  32.  
  33. SSEEEE AALLSSOO
  34.      read(2), write(2), fopen(3S), getc(3S), putc(3S), gets(3S),
  35.      puts(3S), printf(3S), scanf(3S)
  36.  
  37. DDIIAAGGNNOOSSTTIICCSS
  38.      _F_r_e_a_d and _f_w_r_i_t_e return 0 upon end of file or error.
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0               May 15, 1985                          1
  64.  
  65.  
  66.  
  67.